package com.cckat.service.impl;


import com.cckat.base.BaseMapper;
import com.cckat.base.BaseServiceImpl;
import com.cckat.entity.Admin;
import com.cckat.mapper.AdminMapper;
import com.cckat.service.AdminService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author 静海基地
 */
@DubboService
public class AdminServiceImpl extends BaseServiceImpl<Admin> implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public BaseMapper<Admin> getBaseMapper() {
        return adminMapper;
    }

    @Override
    public Admin findAdminByUsername(String username) {
        return adminMapper.findAdminByUsername(username);
    }
}